package com.gmq.chapter01.interrupt;

/**
 * Created by gmq on 2017/08/10.
 *
 * @version 1.0
 * @since 2017/08/10 14:00
 */
public class ReturnMyThread extends Thread {

    @Override
    public void run() {
        while (true) {
            if (this.isInterrupted()) {
                System.out.println(" 停止了 ");
                return;
            }

            System.out.println(" timer= " + System.currentTimeMillis());
        }
    }
}
